package IOperator;

import Book.*;
public class ShowBooks implements IOperator {
    @Override
    public void work(Bookshelf bookshelf) {
        System.out.println("显示所有图书!");
        for (int i = 0; i < bookshelf.getBooksNumber(); i++) {
            Book book = bookshelf.getBooks(i);
            System.out.println(book);
        }
    }
}
